﻿using System;

namespace eCommMongo.Core.Domain.Addresses
{
    public class Address:BaseMongoEntity
    {

        public virtual string Province { get; set; }

        public virtual string City { get; set; }

        public virtual string Address2 { get; set; }

        public virtual string Address1 { get; set; }

        public virtual string MobileNumber { get; set; }

        public virtual string PhoneNumber { get; set; }

        public virtual string ZipPostalCode { get; set; }

        public virtual string FirstName { get; set; }

        public virtual string LastName { get; set; }

        public virtual string Email { get; set; }

        public virtual DateTime CreatedOn { get; set; }

        public Address Clone()
        {
            var addr = new Address()
            {
                FirstName = this.FirstName,
                LastName = this.LastName,
                Email = this.Email,
                Province = this.Province,
                City = this.City,
                Address1 = this.Address1,
                Address2 = this.Address2,
                ZipPostalCode = this.ZipPostalCode,
                PhoneNumber = this.PhoneNumber,
                MobileNumber = this.MobileNumber,
                CreatedOn = this.CreatedOn,
            };
            return addr;
        }
    }
}